package June.polyparameter;

public class worker extends Employee{
    public worker(String name, double m_salary) {
        super(name, m_salary);
    }
    public double getAnnul() {
        return 12 * getM_salary();
    }

    public void work() {
        System.out.println(getName() + "（员工）在干活");
    }

}
